package cn.iocoder.yudao.module.system.dal.mysql.areaserve;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.system.controller.admin.areaserve.vo.BookingSeatRecordPageReqVO;
import cn.iocoder.yudao.module.system.controller.admin.areaserve.vo.MdmEmployeePageReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.areaserve.BookingSeatRecordDO;
import cn.iocoder.yudao.module.system.dal.dataobject.areaserve.MdmEmployeeDO;
import cn.iocoder.yudao.module.system.dal.dataobject.seatreserve.SeatReserveDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface MdmEmployeeMapper extends BaseMapperX<MdmEmployeeDO> {
    default PageResult<MdmEmployeeDO> selectPage(MdmEmployeePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<MdmEmployeeDO>()
                .eqIfPresent(MdmEmployeeDO::getEmployeeCode, reqVO.getEmployeeCode())
                .orderByDesc(MdmEmployeeDO::getId));
    }

}
